package com.cby.jetpack.sample.appstartup

import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.cby.jetpack.sample.R
import com.cby.jetpack.sample.appstartup.init.SDKOne
import com.cby.jetpack.sample.appstartup.init.SDKTwo

/**
 * @description: AppStartUpActivity
 *
 * @author ChenBaoyang
 * @date 2021/10/26 14:21
 */
class AppStartUpActivity : AppCompatActivity() {

    private lateinit var showTv:TextView

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_app_start_up)
        showTv = findViewById(R.id.tv_show)
    }

    fun onAppStartUpTest2(view: View) {
        val list = SDKOne.getInstance().datas
        val array = list.toTypedArray()
        showTv.text = array.toString()
        SDKTwo.getInstance().print()
    }

    fun onAppStartUpTest1(view: View) {
        showTv.text = SDKTwo.getInstance().packageName
        SDKTwo.getInstance().print()
    }
}